000 001 002

Submission Format

Name of Template 1 2

Proposed Timelock Usage

Goal to be achieved by template

A 3-of-3 that turns into a 2-of-3 after 90 days

Detailed Explanation

Provide a detailed explanation. This will ease the review process as well as inform other developers how to implement the template.

Policy:

thresh(3, pk(key_1), pk(key_2), pk(key_3), older(12960))

Output:

thresh(3, pk(key_1), s:pk(key_2), s:pk(key_3), sln:older(12960))

Cost Analysis:

Script: 122 WU

Input: 166.250000 WU

Total: 288.250000 WU

Resulting Bitcoin Script:

<key_1> OP_CHECKSIG OP_SWAP <key_2> OP_CHECKSIG OP_ADD OP_SWAP <key_3>
OP_CHECKSIG OP_ADD OP_SWAP OP_IF
  0
OP_ELSE
  <a032> OP_CHECKSEQUENCEVERIFY OP_0NOTEQUAL
OP_ENDIF
OP_ADD 3 OP_EQUAL

Example Transaction:

   https://mempool.space/testnet/tx/13a204ec065f76878ee1f59f79b3eb2cea2b3fda4d8938e6cfa6a8394d090769

Additional Notes:

provide code examples

provide test vectors

provide graphics to add detail

Alt Image Text Alt Image Text Alt Image Text Alt Image Text
Alt Image Text Alt Image Text Alt Image Text Alt Image Text
Alt Image Text Alt Image Text Alt Image Text Alt Image Text
Alt Image Text Alt Image Text Alt Image Text Alt Image Text

provide methods of testing

provide methods of analysis


Author/s:

github profile

github.com/sipa

Co-Author:

github profile

github.com/sipa

Co-Author:

github profile

github.com/sipa

Additional Links:

1. example

2. example

websites:

bitcoin.sipa.be/miniscript

bitcoin.sipa.be


Blockstream Research

Alt Image Text Alt Image Text Alt Image Text Alt Image Text
Alt Image Text Alt Image Text Alt Image Text Alt Image Text
Alt Image Text Alt Image Text Alt Image Text Alt Image Text
Alt Image Text Alt Image Text Alt Image Text Alt Image Text


  1. Miniscript Template (MinT) 

  2. MiniTapscript Template (MinTT)